<?php
namespace app\index\controller;
use fast\Date;
use fast\Cols;
//use app\index\model\Module;
use app\common\controller\Frontend;

class Modulestock extends Frontend{
    protected $noNeedLogin = ['*'];
    public function info($moduleid = ''){
        $item = new \app\index\model\Module();
        $itemstock = new \app\index\model\Modulestock();
        $iteminfo = $item->with('stocks')->find(['itemid'=>$moduleid]);
        $tanteng = new \stdClass();
        $tanteng->itemid = $iteminfo['itemid'];
        $tanteng->name = $iteminfo['name'];
        $tanteng->enname = $iteminfo['enname'];
        $iteminfo2 = array();
        return $iteminfo;
    }
}
?>
